/*******************************************************************************
 * Copyright (c) 2007 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/

package com.cea.papyrus.extensionpoints.dnd.utils;

import org.eclipse.gef.EditPart;

/**
 * Diagram that use the DNDFilter extension point to specify
 * new cases of drag and drop, must define a class that implement
 * current interface.
 *
 */
public interface IFilter {

	/**
	 * Simple test on the dragged object and target edit part to state
	 * if the drag and drop is allowed or not.
	 * @param draggedObject the dragged object
	 * @param targetEditPart the targeted edit part
	 * @return true if the dnd is allowed / else : false
	 */
	public boolean select(Object draggedObject, EditPart targetEditPart);
}
